<template>
    <van-sticky>
        <van-nav-bar :title="titleway" left-arrow @click-left="onClickLeft">
            <div slot="right">
                <van-icon :name="icon" slot="right" />
            </div>
        </van-nav-bar>
    </van-sticky>
</template>

<script>
import icon from "./icon-qs.png";
export default {
    data() {
        return {
            icon
        };
    },
    computed: {
        titleway() {
            return this.$route.meta.title || this.$route.query.menuname;
        }
    },
    methods: {
        onClickLeft() {
            this.$router.go(-1);
        }
    }
};
</script>

<style scoped lang="less">
.van-nav-bar {
    .van-icon {
        color: #272937;
        font-size: 20px;
    }
    .van-nav-bar__text {
        color: #272937;
    }
}
</style>
